#pragma once
#ifndef SYPX_BUTTON
#define SYPX_BUTTON

#include "Base.h"
#include "GuiComponent.h"
#include "Event.h"

namespace SypX
{
	class SYPXAPI Button : public GuiComponent
	{
	public:
		/*!
			Creates a button.
			\param Defines the width of the button
			\param Defines the height of the button
			\param Texture used by the button
		*/
		Button(float x, float y, float width, float height, float depth = 0.9f, Texture* texture=0);
		virtual ~Button(void);
		///Draws the Button. 
		///It is probably more efficient to draw the MeshInstance yourself if you already have
		///a pointer to the Renderer.
		virtual void draw();
	};

}
#endif